﻿using System.ComponentModel.DataAnnotations;
using MediatR;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Workstation
{
    /// <summary>
    /// 工位信息录入命令类
    /// </summary>
    public class CreateWorkstationCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 工位名称
        /// </summary>
        public string WorkstationName { get; set; }
        /// <summary>
        /// 工位编码
        /// </summary>
        public string Workstationcode { get; set; }

        /// <summary>
        /// 工位描述
        /// </summary>
        public string Workstationdesc { get; set; }

        /// <summary>
        /// 所属产线
        /// </summary>
        public int Productionid { get; set; }

        /// <summary>
        /// 所属工序
        /// </summary>
        public int Processid { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(50)]
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
